#@layout()
#define main()
<!-- 内容区域 -->
<div class="aw-container-wrap">
    <div class="container">
        <div class="row">
            <div class="aw-content-wrap clearfix">
                <div class="col-sm-12 col-md-8 aw-main-content">
                    <div class="aw-mod aw-inbox">
                        <div class="mod-head common-head">
                            <h2>我的文章<span class="badge">#(userArticleList.totalRow)</span></h2>
                        </div>
                        <div class="mod-body aw-feed-list">
                            #for(userArticle : userArticleList.getList())
                            <div class="aw-item">
                                <div class="mod-head">
                                    <a class="aw-user-img aw-border-radius-5" data-id="#(loginAccount.uid)"
                                       href="/user/detail/#(loginAccount.uid)">
                                        <img src="/upload/avatar/#(loginAccount.avatar)" alt="#(loginAccount.nickName)">
                                    </a>
                                    <p>
                                        <a class="aw-user-name" data-id="#(loginAccount.uid)"
                                           href="/user/detail/#(loginAccount.uid)">#(loginAccount.nickName)</a>
                                    </p>
                                    <p class="content">
                                        <a href="/detail/#(userArticle.aid)">
                                            #(userArticle.title)
                                        </a>
                                    </p>
                                    <p class="text-color-999">
										<span class="pull-right">
											<a href="/detail/#(userArticle.aid)">共 #(userArticle.replyCount) 条评论</a>&nbsp;
											<a href="/my/article/edit?aid=#(userArticle.aid)">修改</a>&nbsp;
											<a href="javascript:;"
                                               onclick="myDeleteArticle('删除后无法恢复，确定要删除？', '/my/article/delete?aid=#(userArticle.aid)');">删除</a>
										</span>
                                        <span>发布时间：#date(userArticle.addtime, "yyyy-MM-dd") 浏览量：#(userArticle.views) 收藏量：#(userArticle.favoriteCount)</span>
                                    </p>
                                    <p class="text-color-999">
                                        #if(userArticle.status==0)
                                        <span style="color: #00FF00">已发布，未审核！ </span>
                                        #end
                                        #if(userArticle.status==1)
                                        <span style="color: #FF00FF">审核通过！ </span>
                                        #end
                                        #if(userArticle.status==2)
                                        <span style="color: red">审核失败，请修改重新提交，原因：#(userArticle.reason) </span>
                                        #end
                                    </p>
                                </div>
                            </div>
                            #end
                        </div>
                        <!-- 分页 -->
                        <div class="page-control">
                            #@paginate(userArticleList.pageNumber, userArticleList.totalPage, "/my/article/list/" +
                            loginAccount.uid + "?p=")
                        </div>
                    </div>
                </div>
                #include("/_view/my/common/my_menu.html")
            </div>
        </div>
    </div>
</div>
<!-- 内容区域end -->
#end